package com.amphora.util;

import java.security.Key;

import javax.crypto.spec.SecretKeySpec;

public class AESCrypto {
	private final String ALGORITHM = "AES"; 
	private final byte[] keyValue = new byte[] { 'T', 'h', 'i', 's', 'I', 's', 'A', 'S', 'e', 'c', 'r', 'e', 't', 'K', 'e', 'y' }; 
	
	 public Key generateKey() throws Exception { 
		 Key key = new SecretKeySpec(keyValue, ALGORITHM);
		 // SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(ALGORITHM); 
		 // key = keyFactory.generateSecret(new DESKeySpec(keyValue)); 
		 return key; 
	 }

	public String getALGORITHM() {
		return ALGORITHM;
	}

	public byte[] getKeyValue() {
		return keyValue;
	} 
	 
}
